package com.itic.appbase.framework.type;

public enum OpenStoreState {
	checking("0","审核中"),success("1","开店成功"),fail("2","失败");
	private String state;
	private String name;
	OpenStoreState(String state,String name){
		this.state = state;
		this.name = name;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static OpenStoreState getOpenStoreState(String state){
		OpenStoreState openStoreState = null;
		switch(state){
		case"0":
			openStoreState = OpenStoreState.checking;
			break;
		case"1":
			openStoreState = OpenStoreState.success;
			break;
		case"2":
			openStoreState = OpenStoreState.fail;
			break;
		default:
			break;
		}
		return openStoreState;
	}
}
